//
//  TravelViewController.m
//  MonkeyTravel
//
//  Created by Wan on 16/1/8.
//  Copyright © 2016年 WanWanSui. All rights reserved.
//

#import "TravelViewController.h"
<<<<<<< HEAD

=======
<<<<<<< HEAD
<<<<<<< HEAD
<<<<<<< HEAD
>>>>>>> dd2e48e11d1cbda5ebed3c01abd11e380f3e9413
//#import "HACursor.h"


#import "HACursor.h"

#import "HACursor.h"
<<<<<<< HEAD
=======
>>>>>>> parent of 9fbfe9c... 攻略进行中...collectionView 左侧ing...
=======
#import "HACursor.h"
>>>>>>> parent of 9fbfe9c... 攻略进行中...collectionView 左侧ing...
>>>>>>> dd2e48e11d1cbda5ebed3c01abd11e380f3e9413

@interface TravelViewController ()

@end

@implementation TravelViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view.
<<<<<<< HEAD

=======
<<<<<<< HEAD
<<<<<<< HEAD
<<<<<<< HEAD
>>>>>>> dd2e48e11d1cbda5ebed3c01abd11e380f3e9413
//    NSArray *titlesArr = @[@"游记",@"专题"];
//    HACursor *cursor  = [[HACursor alloc] init];
//    cursor.frame = CGRectMake(0,0, WIDTH, 40*XHIGHT);
//    cursor.titles = titlesArr;
//    cursor.pageViews = [self creatSubVCs];
//    //设置根滚动视图的高度
//    cursor.rootScrollViewHeight = HEIGHT - 153*XHIGHT;
//    cursor.titleNormalColor = [UIColor whiteColor];
//    cursor.titleSelectedColor = [UIColor redColor];
//    cursor.showSortbutton = YES;
//    //默认的最小值是5，小于默认值的话按默认值设置
//    cursor.minFontSize = 6;
//    [self.view addSubview:cursor];

    self.navigationItem.title = @"HuntersTravel";
    NSArray *titlesArr = @[@"游记",@"专题"];
    HACursor *cursor  = [[HACursor alloc] init];
    cursor.backgroundColor = [UIColor blackColor];
<<<<<<< HEAD

=======
=======
    NSArray *titlesArr = @[@"游记",@"专题"];
    HACursor *cursor  = [[HACursor alloc] init];
>>>>>>> parent of 9fbfe9c... 攻略进行中...collectionView 左侧ing...
=======
    NSArray *titlesArr = @[@"游记",@"专题"];
    HACursor *cursor  = [[HACursor alloc] init];
>>>>>>> parent of 9fbfe9c... 攻略进行中...collectionView 左侧ing...
>>>>>>> dd2e48e11d1cbda5ebed3c01abd11e380f3e9413
    cursor.frame = CGRectMake(0,0, WIDTH, 40*XHIGHT);
    cursor.titles = titlesArr;
    cursor.pageViews = [self creatSubVCs];
    //设置根滚动视图的高度
    cursor.rootScrollViewHeight = HEIGHT - 153*XHIGHT;
<<<<<<< HEAD

=======
<<<<<<< HEAD
<<<<<<< HEAD
>>>>>>> dd2e48e11d1cbda5ebed3c01abd11e380f3e9413
    cursor.titleNormalColor = [UIColor colorWithRed:108 / 255.0 green:122 / 255.0 blue:137 / 255.0 alpha:1];
    cursor.titleSelectedColor = [UIColor colorWithRed:190 / 255.0 green:144 / 255.0 blue:212 / 255.0 alpha:0.6] ;
    cursor.showSortbutton = YES;
    //默认的最小值是5，小于默认值的话按默认值设置
    cursor.minFontSize = 5;
    [self.view addSubview:cursor];
}
//容器视图控制器添加子视图方法
<<<<<<< HEAD



=======
=======
=======
>>>>>>> parent of 9fbfe9c... 攻略进行中...collectionView 左侧ing...
    cursor.titleNormalColor = [UIColor whiteColor];
    cursor.titleSelectedColor = [UIColor redColor];
    cursor.showSortbutton = YES;
    //默认的最小值是5，小于默认值的话按默认值设置
    cursor.minFontSize = 6;
    [self.view addSubview:cursor];
}
<<<<<<< HEAD
>>>>>>> parent of 9fbfe9c... 攻略进行中...collectionView 左侧ing...
=======
>>>>>>> parent of 9fbfe9c... 攻略进行中...collectionView 左侧ing...
>>>>>>> dd2e48e11d1cbda5ebed3c01abd11e380f3e9413
-(NSMutableArray *)creatSubVCs
{
    TravelDiaryViewController *tdVc = [[TravelDiaryViewController alloc] init];
    SubjectViewController *subVc = [[SubjectViewController alloc] init];
    [self addChildViewController:tdVc];
    [self addChildViewController:subVc];
    NSMutableArray *array = [NSMutableArray arrayWithObjects:tdVc.view,subVc.view, nil];
    return array;
<<<<<<< HEAD

=======
<<<<<<< HEAD
<<<<<<< HEAD
>>>>>>> 4310dab8569999c5ec6aea4e237cf7233ae64f16
=======
>>>>>>> parent of 9fbfe9c... 攻略进行中...collectionView 左侧ing...
=======
>>>>>>> parent of 9fbfe9c... 攻略进行中...collectionView 左侧ing...
>>>>>>> dd2e48e11d1cbda5ebed3c01abd11e380f3e9413
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
